let a = 'name'
let obj = {} 

obj[a] = 'tom'
console.log(obj);